import request from '@/utils/request'

// 页面查询配置
export function mealList(data) {
  return request({
    url: '/do?c=411006',
    method: 'post',
    data
  })
}
export function editOrAddMeal(data) {
  return request({
    url: '/do?c=411002',
    method: 'post',
    data
  })
}

export function mealInfo(data) {
  return request({
    url: '/do?c=411003',
    method: 'post',
    data
  })
}

export function mealStatus(data) {
  return request({
    url: '/do?c=411005',
    method: 'post',
    data
  })
}

export function deleteMeal(data) {
  return request({
    url: '/do?c=411004',
    method: 'post',
    data
  })
}

export function mealDiscount(data) {
  return request({
    url: '/do?c=411007',
    method: 'post',
    data
  })
}

// // 获取场馆课程列表
export function courseListPost(data) {
  return request({
    url: '/do?c=530108',
    method: 'post',
    data
  })
}
// // 获取场馆课程列表
export function courseListByVenue(data) {
  return request({
    url: '/do?c=530018',
    method: 'post',
    data
  })
}
// 获取场馆教练等级
export function teacherLevelPost(data) {
  return request({
    url: '/do?c=530062',
    method: 'post',
    data
  })
}
// 新增/编辑教练
export function getChannelType(data) {
  return request({
    url: '/do?c=900011',
    method: 'post',
    data: data
  })
}
// 订单类型查询
export function getOrderTypeQuery(data) {
  return request({
    url: '/do?c=900010',
    method: 'post',
    data
  })
}
export function mealOrderbList(data) {
  return request({
    url: '/do?c=411010',
    method: 'post',
    data: data
  })
}
export function mealCancel(data) {
  return request({
    url: '/do?c=411020',
    method: 'post',
    data: data
  })
}
export function mealRefund(data) {
  return request({
    url: '/do?c=411022',
    method: 'post',
    data: data
  })
}
const isExperience = false
// 打印小票
export function printOrder(data) {
  if (isExperience) {
    return
  }
  return request({
    url: '/do?c=930002',
    method: 'post',
    data
  })
}
// 支付状态
export function orderbType(data) {
  return request({
    url: '/do?c=701010',
    method: 'post',
    data
  })
}
// 套餐订单 导出
export function mealOrderExport(data) {
  return request({
    url: '/do?c=411044',
    method: 'post',
    data
  })
}
// 套餐订单详情
export function mealOrderDetial(data) {
  return request({
    url: '/do?c=411041',
    method: 'post',
    data
  })
}
